package org.noote.libs.robot.ik;

import org.noote.libs.robot.Robot_Animation;
import org.noote.libs.robot.Robot_AnimationContext;
import org.noote.libs.robot.Robot_Skeleton;

public class IkRobot_AnimationContext extends Robot_AnimationContext {

	public int _iStep=0;
	
	IkRobot_Animation _anim;
	
	public IkRobot_AnimationContext(Robot_Skeleton robot) {
		super(robot);
	}
	
	@Override
	public boolean start(Robot_Animation anim)
	{
		return false;
	}
	
	public boolean start(IkRobot_Animation anim)
	{
		if(!super.start(anim)) return false;
		
		_iStep=0;
		_anim=anim;
		
		return doStep();
	}
	
	@Override
	public void addTime(float fSlice) {
		super.addTime(fSlice);
		
		doStep();
	}

	protected boolean doStep()
	{

		return false;
	}
}
